﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="WorkFlows.WelcomeWorkFlow"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:local="clr-namespace:WorkFlows"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:s="clr-namespace:ScreensInterfaces;assembly=ScreensInterfaces"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="ServiceArg" Type="OutArgument(x:String)" />
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>WorkFlows.WelcomeWorkFlow_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>ScreensInterfaces</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>ServiceLocator</AssemblyReference>
      <AssemblyReference>ScreensInterfaces</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>WorkFlows</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <StateMachine sap2010:WorkflowViewState.IdRef="StateMachine_1">
    <StateMachine.InitialState>
      <State x:Name="__ReferenceID0" sap2010:Annotation.AnnotationText="" DisplayName="Welcome Screen State" sap2010:WorkflowViewState.IdRef="State_4">
        <State.Entry>
          <local:ShowMessageActivity BookmarkName="WelcomeScreen" Header="Welcome to WPF-WF Bank" sap2010:WorkflowViewState.IdRef="ShowMessageActivity_1" Text="Click any place on the screen to start" />
        </State.Entry>
        <State.Transitions>
          <Transition DisplayName="T1" sap2010:WorkflowViewState.IdRef="Transition_7">
            <Transition.To>
              <State x:Name="__ReferenceID1" DisplayName="Choose Flow State" sap2010:WorkflowViewState.IdRef="State_2">
                <State.Entry>
                  <local:ShowTwoChoicesActivity ButtonOneSubCommand="{x:Null}" ButtonTwoSubCommand="{x:Null}" BookmarkName="ShowAvailableFlows" ButtonOneCommand="WithdrawCash" ButtonOneLabel="Withdraw Cash" ButtonTwoCommand="CheckBalance" ButtonTwoLabel="Check My Balance" Header="WPF-WF Bank ATM Services" sap2010:WorkflowViewState.IdRef="ShowTwoChoicesActivity_1" IsShowBackButton="False" Text="Choose one of the services">
                    <local:ShowTwoChoicesActivity.Result>
                      <OutArgument x:TypeArguments="s:ScreenOutput">
                        <mca:CSharpReference x:TypeArguments="s:ScreenOutput">ServiceScreenOutput</mca:CSharpReference>
                      </OutArgument>
                    </local:ShowTwoChoicesActivity.Result>
                  </local:ShowTwoChoicesActivity>
                </State.Entry>
                <State.Exit>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_2">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">ServiceArg</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">ServiceScreenOutput.Choice.Command</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                </State.Exit>
                <State.Transitions>
                  <Transition DisplayName="Flow chosen" sap2010:WorkflowViewState.IdRef="Transition_1">
                    <Transition.To>
                      <State x:Name="__ReferenceID2" DisplayName="FinalState" sap2010:WorkflowViewState.IdRef="State_1" IsFinal="True" />
                    </Transition.To>
                    <Transition.Action>
                      <local:ShowTimedMessageActivity BookmarkName="PleaseWait" Header="Initializing flow " sap2010:WorkflowViewState.IdRef="ShowTimedMessageActivity_1" Text="Nothing is really going on, just a timer! ... but please wait" TimeOut="2500" />
                    </Transition.Action>
                    <Transition.Condition>
                      <mca:CSharpValue x:TypeArguments="x:Boolean">ServiceScreenOutput.isBackButtonClicked == false</mca:CSharpValue>
                    </Transition.Condition>
                  </Transition>
                </State.Transitions>
              </State>
            </Transition.To>
          </Transition>
        </State.Transitions>
      </State>
    </StateMachine.InitialState>
    <x:Reference>__ReferenceID0</x:Reference>
    <x:Reference>__ReferenceID1</x:Reference>
    <x:Reference>__ReferenceID2</x:Reference>
    <StateMachine.Variables>
      <Variable x:TypeArguments="s:ScreenOutput" Name="ServiceScreenOutput" />
    </StateMachine.Variables>
    <sads:DebugSymbol.Symbol>d21DOlxVc2Vyc1xhaG1hZC5rXERvY3VtZW50c1xWaXN1YWwgU3R1ZGlvIDIwMTNcUHJvamVjdHNcQVRNX1dQRl9XRl9URVNUXFNlcnZpY2VzV29ya0Zsb3dzXFdlbGNvbWVXb3JrRmxvdy54YW1sGzADaxICAQEyB2IPAgEiOQ9eFwIBBFQXVIoBAgECNAs0ywECASU7E0EyAgEWRBNPHAIBD1oXWoYBAgELVxdXgAICAQY0MzRCAgEoNEo0YgIBJzSgATTIAQIBJjuiATuwAQIBITuAAzuHAwIBIDt8O5ABAgEfO5kCO7MCAgEeO+EBO+8BAgEdO40DO6kDAgEcO/8BO5ECAgEbPhk+eAIBGDvAATvPAQIBF0wZTHkCARNHGUdpAgEQV/cBV/0BAgEKV0RXUAIBCVdYV2wCAQhXrwFX7gECAQc=</sads:DebugSymbol.Symbol>
  </StateMachine>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="ShowMessageActivity_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="ShowTwoChoicesActivity_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Assign_2" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="State_1" sap:VirtualizedContainerService.HintSize="114,61">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">403,479.5</av:Point>
            <av:Size x:Key="ShapeSize">114,61</av:Size>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ShowTimedMessageActivity_1" sap:VirtualizedContainerService.HintSize="200,22" />
      <sap2010:ViewStateData Id="Transition_1" sap:VirtualizedContainerService.HintSize="430,507">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:PointCollection x:Key="ConnectorLocation">176,385.15 206,385.15 206,513.05 403,513.05</av:PointCollection>
            <x:Int32 x:Key="SrcConnectionPointIndex">32</x:Int32>
            <x:Int32 x:Key="DestConnectionPointIndex">41</x:Int32>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="State_2" sap:VirtualizedContainerService.HintSize="172,97">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">4,341.5</av:Point>
            <av:Size x:Key="ShapeSize">172,97</av:Size>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
            <x:Double x:Key="StateContainerWidth">158</x:Double>
            <x:Double x:Key="StateContainerHeight">61.079999999999984</x:Double>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Transition_7" sap:VirtualizedContainerService.HintSize="430,507">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:PointCollection x:Key="ConnectorLocation">115.25,247 115.25,277 81.4,277 81.4,341.5</av:PointCollection>
            <x:Int32 x:Key="SrcConnectionPointIndex">35</x:Int32>
            <x:Int32 x:Key="DestConnectionPointIndex">34</x:Int32>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="State_4" sap:VirtualizedContainerService.HintSize="224,133">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <av:Point x:Key="ShapeLocation">14,114</av:Point>
            <av:Size x:Key="ShapeSize">224,133</av:Size>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
            <x:Double x:Key="StateContainerWidth">210</x:Double>
            <x:Double x:Key="StateContainerHeight">74.000000000000057</x:Double>
            <x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="StateMachine_1" sap:VirtualizedContainerService.HintSize="614,636">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <av:Point x:Key="ShapeLocation">60,2.5</av:Point>
            <x:Double x:Key="StateContainerWidth">600</x:Double>
            <x:Double x:Key="StateContainerHeight">600.5</x:Double>
            <av:PointCollection x:Key="ConnectorLocation">99,77.5 99,107.5 126.5,107.5 126.5,114</av:PointCollection>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WorkFlows.WelcomeWorkFlow_1" sap:VirtualizedContainerService.HintSize="654,716" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>